const form = [{
    key: 'pz',
    label: '品种',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'dh',
    label: '代号',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}, {
    key: 'xdms',
    label: '细度模数',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
},{
    key: 'hsl',
    label: '含水率',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}, {
    key: 'hsl',
    label: '含泥量',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}, {
    key: 'nkhl',
    label: '泥块含量',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
},{
    key: 'yjlz',
    label: '亚甲蓝值',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}, {
    key: 'hsl',
    label: '含石量',
    validatorNumber:true,
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}, {
    key: 'sfhl',
    label: '石粉含量',
    validatorNumber:true,
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
},{
    key: 'ym',
    label: '云母（质量分数）%',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'qwz',
    label: '轻物质（质量分数）%',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'yjw',
    label: '有机物',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
},{
    key: 'ljwjlsy',
    label: '硫化物及硫酸盐（按S3O质量计）%',
    validatorNumber:true,
    labelWidth: 240,
    required: false,
    placeholder: '请填写'
},{
    key: 'lhw',
    label: '氯化物（以氯离子质量计）%',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'bk',
    label: '贝壳（质量分数）%',
    validatorNumber:true,
    labelWidth: 200,
    required: false,
    placeholder: '请填写'
},{
    key: 'zlssl',
    label: '质量损失率%',
    validatorNumber:true,
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'djzdyszb',
    label: '单级最大压碎值标%',
    validatorNumber:true,
    labelWidth: 180,
    required: false,
    placeholder: '请填写'
},{
    key: 'pzklhl',
    label: '片状颗粒含量',
    validatorNumber:true,
    labelWidth: 110,
    required: false,
    placeholder: '请填写'
},{
    key: 'zxbz',
    label: '执行标准',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}]


const requiredArr = []
const notRequiredArr = []

let tempArr = []
form.forEach(item => {
    if(item.required) {
        tempArr.push(item)
    }else {
        notRequiredArr.push(item)
    }
    if( tempArr.length >= 2 ) {
        requiredArr.push(tempArr)
        tempArr = []
    }
})

if( tempArr.length > 0 ) {
    requiredArr.push(tempArr)
    tempArr = []
}

export default {
    requiredArr,
    notRequiredArr
};